package com.gao.frame.study.shop.config.module.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName(value = "region_info")
public class RegionInfo {
    /**
     * 主键id
     */
     @TableId(value = "region_id", type = IdType.AUTO)
    private Short regionId;

    /**
     * 上级地区id
     */
    @TableField(value = "parent_id")
    private Short parentId;

    /**
     * 城市名称
     */
    @TableField(value = "region_name")
    private String regionName;

    /**
     * 级别
     */
    @TableField(value = "region_level")
    private Boolean regionLevel;

    public static final String COL_PARENT_ID = "parent_id";

    public static final String COL_REGION_NAME = "region_name";

    public static final String COL_REGION_LEVEL = "region_level";
}